package com.ruoyi.algorithm.dict.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName dictionary
 */
@TableName(value = "dictionary")
@Data
@ApiModel
public class Dictionary implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "主键ID（新增不需要传值）")
    private Long id;

    /**
     * 字典码
     */
    @ApiModelProperty("字典码")
    @TableField(value = "key")
    private String key;

    /**
     * 字典值
     */
    @ApiModelProperty("字典值")
    @TableField(value = "value")
    private String value;

    /**
     * 字典类型表类型id
     */
    @ApiModelProperty("字典类型表类型id")
    @TableField(value = "type_key_id")
    private Long typeKeyId;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    @TableField(value = "description")
    private String description;

    /**
     * 是否可用编辑(true可编辑；false不可编辑)
     */
    @ApiModelProperty("是否可用编辑(true可编辑；false不可编辑)")
    @TableField(value = "status")
    private Boolean status;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    @TableField(value = "seq")
    private Integer seq;

    /**
     * 创建时间
     */
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:dd:ss", timezone = "GMT+8") // 后台传数据到前台
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:dd:ss", timezone = "GMT+8") // 后台传数据到前台
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
